package CreateThread;


import lombok.extern.slf4j.Slf4j;

@Slf4j(topic="c.ImplementRunnable")
public class ImplementRunnable {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                log.debug("running");
            }
        };
        Thread thread = new Thread(runnable,"t2");
        thread.start();

        //lambda简化
        Runnable r = () -> {log.debug("running");};

    }


}
